package cn.lovecyy.mockjson.core.resp;

import cn.hutool.core.util.RandomUtil;

import java.util.Arrays;
import java.util.List;

/**
 * AreaResp
 *
 * @author Yakir
 */
public class AreaResp {

	static List<AreaInfo> areaList = Arrays.asList(
			new AreaInfo("110000", "110100", "110101", "北京市", "北京市", "东城区", "北京市北京市东城区XX街道"),
			new AreaInfo("310000", "310100", "310101", "上海市", "上海市", "黄浦区", "上海市上海市黄浦区XX路")
	// ... 可扩展
	);

	public static AreaInfo randomArea() {
		return areaList.get(RandomUtil.randomInt(areaList.size()));
	}

}
